package ru.budget.mobile.ui.theme

import android.app.Activity
import androidx.compose.foundation.isSystemInDarkTheme
import androidx.compose.material3.darkColorScheme
import androidx.compose.material3.lightColorScheme
import androidx.compose.runtime.Composable
import androidx.compose.ui.graphics.toArgb
import androidx.compose.ui.platform.LocalView
import ru.budget.mobile.ui.main.visiblyActionMenu

val DarkColorScheme = darkColorScheme(

)

val LightColorScheme = lightColorScheme(

)

@Composable
fun BudgetTheme(
    darkTheme: Boolean = isSystemInDarkTheme(),
    dynamicColor: Boolean = true,
    content: @Composable () -> Unit
) {
    (LocalView.current.context as Activity).window.statusBarColor = if (visiblyActionMenu.value) {
        statusBarColor.toArgb()
    } else {
        white1.toArgb()
    }
}